read — File Read


\begin{rail}
Read : 'read' '(' String ')' ;
\end{rail}
read is a function that allows you to read in variables from a file. The string argument specifies the file to read from. All the variables that are stored in the file are read in, overwriting any existing variables with the same name. The file is closed after it has been read from. This function returns 1 is the read succeeds. The format of the file is quite specific, and it is intended that this function be used with the write function. Trying to create a file that can be read from is fraught with danger. If it is essential, I suggest using write to create one similar, and then editing as little as necessary.

Subsections